import Ember from 'ember';
import InfiniteScroll from '../../infinite-scroll';

export default Ember.Controller.extend(InfiniteScroll,{
  infiniteContentPropertyName: "lookMessage",
  infiniteModelName: "message",
  infiniteContainerName:"lookMessageContainer",
  //当前登陆人
  theSelf:Ember.computed(function () {
    var curUser = this.get('global_curStatus').getUser();
    return curUser.get("id");
  }),
  actions:{
    //回上一级页面
    back:function(){
      var mainpageController = App.lookup('controller:business.mainpage');
      mainpageController.switchMainPage('message');
      //_self.get('target').send('saveRefresh');
    },

  }
});
